package it.pecuswap.backend.delegate;


import it.pecuswap.backend.entities.Config;
import it.pecuswap.backend.entities.base.GenericBaseDAO;

import java.util.List;

import org.hibernate.Criteria;

public class ConfigurazioneDelegate extends GenericBaseDAO<Config> {
	
	public ConfigurazioneDelegate(Class<Config> theClass, boolean isSharedSession) {
		super(theClass, isSharedSession);
	}

	@SuppressWarnings("unchecked")
	public List<Config> findAll(){
		Criteria criteria = getSession().createCriteria(Config.class);
		return criteria.list();
	}

}
